.tglider-outer {
  .tglider-video-cont {
    display: inline-block;
    vertical-align: middle;
    max-width: 1140px;
    max-height: 100%;
    width: 100%;
    padding: 0 5px;
  }

  .tglider-video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    position: relative;

    .tglider-object {
      display: inline-block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100% !important;
      height: 100% !important;
    }

    .tglider-video-play {
      width: 84px;
      height: 59px;
      position: absolute;
      left: 50%;
      top: 50%;
      margin-left: -42px;
      margin-top: -30px;
      z-index: $zindex-playbutton;
      cursor: pointer;
    }
  }

  .tglider-has-vimeo {
    .tglider-video-play {
      background: url('#{$tglider-path-images}/vimeo-play.png') no-repeat scroll
        0 0 transparent;
    }
    &:hover {
      .tglider-video-play {
        background: url('#{$tglider-path-images}/vimeo-play.png') no-repeat
          scroll 0 -58px transparent;
      }
    }
  }

  .tglider-has-html5 {
    .tglider-video-play {
      background: transparent url('#{$tglider-path-images}/video-play.png')
        no-repeat scroll 0 0;
      height: 64px;
      margin-left: -32px;
      margin-top: -32px;
      width: 64px;
      opacity: 0.8;
    }
    &:hover {
      .tglider-video-play {
        opacity: 1;
      }
    }
  }

  .tglider-has-youtube {
    .tglider-video-play {
      background: url('#{$tglider-path-images}/youtube-play.png') no-repeat
        scroll 0 0 transparent;
    }
    &:hover {
      .tglider-video-play {
        background: url('#{$tglider-path-images}/youtube-play.png') no-repeat
          scroll 0 -60px transparent;
      }
    }
  }
  .tglider-video-object {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
  }

  .tglider-has-video {
    .tglider-video-object {
      visibility: hidden;
    }

    &.tglider-video-playing {
      .tglider-object,
      .tglider-video-play {
        display: none;
      }

      .tglider-video-object {
        visibility: visible;
      }
    }
  }
}
